//
//  GlobalMacro.h
//  BMWManger
//
//  Created by Crassus on 16/9/22.
//  Copyright © 2016年 Yonyou. All rights reserved.
//

#ifndef GlobalMacro_h
#define GlobalMacro_h

//access_Token
#define Access_Token [SDUserInfo sharedInstance].accessToken
//userID
#define USER_ID [SDUserInfo sharedInstance].userId
#define USER_PHONE [SDUserInfo sharedInstance].telephone
#define USER_NAME [SDUserInfo sharedInstance].userName

/*字体设置*/
#define TitleSize           ActualWidth(15)
#define TitleFont           [UIFont systemFontOfSize:TitleSize]
#define BoldTitleFont       [UIFont boldSystemFontOfSize:TitleSize]

#define ContentSize         ActualWidth(13)
#define ContentFont         [UIFont systemFontOfSize:ContentSize]
#define BoldContentFont     [UIFont boldSystemFontOfSize:ContentSize]

#define NaviSize            ActualWidth(18)
#define NaviFont            [UIFont systemFontOfSize:NaviSize]
#define BoldNaviFont        [UIFont boldSystemFontOfSize:NaviSize]

/*全局Color*/
#define TitleColor_Blue                       Color(0x2DA1DD)
#define TitleColor_VWBlue                     Color(0x2DA1DD)
#define TitleColor_VWDarkBlue                 Color(0x0564A6)
#define TitleColor_SKGreen     [UIColor colorWithHexString:@"3e9b23"]
#define TitleColor_SKDarkGreen [UIColor colorWithHexString:@"2c8229"]
#define TitleColor             [ICrEAMTool isVW]?TitleColor_VWBlue:TitleColor_SKGreen
#define TitleColor_Dark        [ICrEAMTool isVW]?TitleColor_VWDarkBlue:TitleColor_SKDarkGreen

#define ContentTextColor_Black              Color(0x1C1C1C)
#define ContentTextColor_Gray               Color(0x676767)
#define TextFeildBackgroundColor_Gray       Color(0xEAEAEA)
#define TextFeildBackgroundColor_OffWhite   Color(0xF4F5F7)
#define BackgroundColor_Gray                Color(0xF1F3F3)
#define BackgroundColor_White               Color(0xF8F8F8)
#define BackgroundColor_HeaderGray          Color(0xE5E5EB)
#define BorderColor_Gray                    Color(0x808890)
#define BackgroundColor_HeaderBlue          Color(0xE5EBEB)
#define WarningColor_Red                    Color(0xFB0006)
#define BackgroundColor_Tanslucent_black    [UIColor colorWithWhite:0 alpha:0.2]
#define BorderColor_Gray_Hex                0x808890
#define SepColor_gray                       Color(0xE6E6E6)

/*图片(yy)*/
#define Appointment_Customer     [ICrEAMTool isVW]?@"appointment_customer_vw":@"appointment_customer_sk"
#define Appointment_Consultant   [ICrEAMTool isVW]?@"appointment_consultant_vw":@"appointment_consultant_sk"
#define Appointment_Calendar     [ICrEAMTool isVW]?@"appointment_calendar_vw":@"appointment_calendar_sk"
#define Appointment_Car          [ICrEAMTool isVW]?@"appointment_car_vw":@"appointment_car_sk"
#define Appointment_CarInfo      [ICrEAMTool isVW]?@"appointment_carInfo_vw":@"appointment_carInfo_sk"
#define Appointment_CarMonitor   [ICrEAMTool isVW]?@"appointment_carmonitor_vw":@"appointment_carmonitor_sk"
#define Appointment_CarOwner     [ICrEAMTool isVW]?@"appointment_carowner_vw":@"appointment_carowner_sk"
#define Appointment_GetCarSelected          [ICrEAMTool isVW]?@"appointment_getcar_selected_vw":@"appointment_getcar_selected_sk"
#define Appointment_ActivityChoose          [ICrEAMTool isVW]?@"appointment_activity_choose_vw":@"appointment_activity_choose_sk"
#define Appointment_SearchBtn    [ICrEAMTool isVW]?@"appointment_search_vw":@"appointment_search_sk"
#define Appointment_AppointSelected    [ICrEAMTool isVW]?@"appointment_appoint_selected_vw":@"appointment_appoint_selected_sk"
#define GetCar_Cancel   [ICrEAMTool isVW]?@"getcar_cancel_vw":@"getcar_cancel_sk"
#define GetCar_Add      [ICrEAMTool isVW]?@"getcar_add_vw":@"getcar_add_sk"
#define GetCar_OilMeter    [ICrEAMTool isVW]?@"getcar_oilmeter_vw":@"getcar_oilmeter_sk"
#define GetCar_OilMeterNeedle   [ICrEAMTool isVW]?@"getcar_oilmeterneedle_vw":@"getcar_oilmeterneedle_sk"
#define GetCar_Scan    [ICrEAMTool isVW]?@"getcar_scan_vw":@"getcar_scan_sk"
#define GetCar_SearchIcon    [ICrEAMTool isVW]?@"getcar_searchicon_vw":@"getcar_searchicon_sk"
#define GetCar_CarInfo    [ICrEAMTool isVW]?@"getCar_header_vw":@"getCar_header_sk"
#define GetCar_Proxy    [ICrEAMTool isVW]?@"pro_header_vw":@"pro_header_sk"
#define GetCar_Appoint   [ICrEAMTool isVW]?@"getcar_appoint_vw":@"getcar_appoint_sk"
#define GetCar_Items   [ICrEAMTool isVW]?@"getcar_items_vw":@"getcar_items_sk"
#define GetCar_Parts   [ICrEAMTool isVW]?@"getcar_parts_vw":@"getcar_parts_sk"
#define GetCar_Expand  [ICrEAMTool isVW]?@"getcar_expand_vw":@"getcar_expand_sk"
#define GetCar_Synchronize  [ICrEAMTool isVW]?@"getcar_synchronize_vw":@"getcar_synchronize_sk"
#define Common_Preview  [ICrEAMTool isVW]?@"preview_vw":@"preview_sk"
#define Balance_Confirm  [ICrEAMTool isVW]?@"balance_confirm_vw":@"balance_confirm_sk"
#define GetCar_Print  [ICrEAMTool isVW]?@"getcar_print_vw":@"getcar_print_sk"
#define Btn_Activity_Notchoose @"btn_activity_notchoose"

/*圆角设置边框*/
#define RadiusValue                     4.0
#define CornerRadius(view,radius)       view.layer.cornerRadius = radius;\
                                        view.layer.masksToBounds = YES;
/*边框大小*/
#define BorderWidth(view,width)         view.layer.borderWidth = width;

/*边框颜色*/
#define BorderColor(view,hex)           view.layer.borderColor = Color(hex).CGColor;

/*标题和输入框的间距*/
#define DistanceOfTitleToText           10

/*默认输入框高度*/
#define TextFeildHeight                 ActualHeight(35)

//Debug模式log宏
#ifdef DEBUG
#define D_NSLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define D_NSLog(format, ...)
#endif

#endif /* GlobalMacro_h */








